
export default {
  ['username']: {
    pattern: '^[a-zA-Z0-9-_]{4,12}$',
    message: '用户名由数字、字母和下划线组成, 且长度保持在4~12字符'
  },
  ['password']: {
    pattern: '^[a-zA-Z0-9\\`\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\-\\_\\=\\+\\[\\{\\]\\}\\|\\;\\:\'\\"\\,\\<\\.\\>\\/\\?]{6,20}$',
    message: '密码由数字、字母和符号组成, 且长度保持在6~20字符'
  },
  ['email']: '^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$',
  ['nickname']: {
    pattern: '^(?![_-])(?!.*?[_-]$)[a-zA-Z0-9-_\\u4e00-\\u9fa5]+$',
    minlength: 4,
    maxlength: 12,
    message: '由中文、字母、数字和下划线组成，且长度为4～12字符'
  },
  ['objectId']: '^[a-f0-9]{24}$',
  ['uuid']: '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'
}